package com.aqian.theme.color.happy.ui.viewmodel

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.material.icons.filled.Settings
import androidx.compose.material.icons.filled.Star
import androidx.lifecycle.ViewModel
import com.aqian.theme.color.happy.data.model.Feature
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

class ProfileViewModel : ViewModel() {
    private val _features = MutableStateFlow<List<Feature>>(emptyList())
    val features: StateFlow<List<Feature>> = _features.asStateFlow()

    init {
        loadFeatures()
    }

    private fun loadFeatures() {
        val mockFeatures = listOf(
            Feature(
                icon = Icons.Filled.Favorite,
                title = "我的收藏"
            ),
            Feature(
                icon = Icons.Filled.Star,
                title = "我的评分"
            ),
            Feature(
                icon = Icons.Filled.Settings,
                title = "设置"
            )
        )
        _features.value = mockFeatures
    }
}
